% *************** Load packages ***************
\usepackage{verbatim}
% \usepackage{url}
% 	\urlstyle{same}  
\usepackage{array}
\usepackage{multirow}
\usepackage{longtable,lscape}
\usepackage{listings}
\usepackage{rotating}
\usepackage{pdfpages}
\usepackage{float}
\usepackage{subfig}
\usepackage{makeidx}
% \usepackage{nomencl}
% \usepackage{caption}  

% % coba line number
% \usepackage{lineno}
% % Running line numbers:
% \linenumbers
% % Number only every 5:th line:
% \modulolinenumbers[5]

% *************** graphicx ***************
\usepackage{graphicx}
\graphicspath{{figure/png/}{figure/eps/}{figure/pdf/}}
\DeclareGraphicsExtensions{.png,.eps,.pdf}
 
% \usepackage[pdftex]{graphicx} 
\usepackage{epstopdf}
% \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
 
% \graphicspath{{figure/eps/}}
% \DeclareGraphicsExtensions{.eps}

% *************** Table setting ***************
%set the height of each row, 1*default 12pt
\renewcommand\arraystretch{1}

% *************** Enable index generation ***************
\makeindex
 
% *************** Add reference to page number at which bibliography entry is cited ***************
%% natbib
\usepackage{natbib}
\usepackage{har2nat}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{citeref}
% \renewcommand{\bibitempages}[1]{
% 	newblock {\scriptsize [\mbox{cited at p.\ }#1]}
% }

% *************** Another command ***************
% Perintah untuk membuat perintah/variabel baru. 
\newcommand{\var}[2]{\newcommand{#1}{#2}}
% 
% Perintah untuk membuat perintah/variabel baru. Teks yang ditulis dalam 
% perintah ini akan diformat ulang menggunakan huruf kapital. 
\newcommand{\Var}[2]{\newcommand{#1}{\uppercase{#2}}}

\newcommand{\TODO}[1]{\textit{\textbf{todo :} #1}\newline}
\newcommand{\TODOmark}[1]{\begin{center}\texttt{#1}\end{center}}

% Tambahkan kata-kata yang dimasukan kedalam Table of Contents. 
\newcommand{\addChapter}[1]{\phantomsection \addcontentsline{toc}{chapter}{#1}}

\renewcommand{\bibname}{References}

% *************** Some colour definitions ***************
\usepackage{color}

\definecolor{greenyellow}   {cmyk}{0.15, 0   , 0.69, 0   }
\definecolor{yellow}        {cmyk}{0   , 0   , 1   , 0   }
\definecolor{goldenrod}     {cmyk}{0   , 0.10, 0.84, 0   }
\definecolor{dandelion}     {cmyk}{0   , 0.29, 0.84, 0   }
\definecolor{apricot}       {cmyk}{0   , 0.32, 0.52, 0   }
\definecolor{peach}         {cmyk}{0   , 0.50, 0.70, 0   }
\definecolor{melon}         {cmyk}{0   , 0.46, 0.50, 0   }
\definecolor{yelloworange}  {cmyk}{0   , 0.42, 1   , 0   }
\definecolor{orange}        {cmyk}{0   , 0.61, 0.87, 0   }
\definecolor{burntorange}   {cmyk}{0   , 0.51, 1   , 0   }
\definecolor{bittersweet}   {cmyk}{0   , 0.75, 1   , 0.24}
\definecolor{redorange}     {cmyk}{0   , 0.77, 0.87, 0   }
\definecolor{mahogany}      {cmyk}{0   , 0.85, 0.87, 0.35}
\definecolor{maroon}        {cmyk}{0   , 0.87, 0.68, 0.32}
\definecolor{brickred}      {cmyk}{0   , 0.89, 0.94, 0.28}
\definecolor{red}           {cmyk}{0   , 1   , 1   , 0   }
\definecolor{orangered}     {cmyk}{0   , 1   , 0.50, 0   }
\definecolor{rubinered}     {cmyk}{0   , 1   , 0.13, 0   }
\definecolor{wildstrawberry}{cmyk}{0   , 0.96, 0.39, 0   }
\definecolor{salmon}        {cmyk}{0   , 0.53, 0.38, 0   }
\definecolor{carnationpink} {cmyk}{0   , 0.63, 0   , 0   }
\definecolor{magenta}       {cmyk}{0   , 1   , 0   , 0   }
\definecolor{violetred}     {cmyk}{0   , 0.81, 0   , 0   }
\definecolor{rhodamine}     {cmyk}{0   , 0.82, 0   , 0   }
\definecolor{mulberry}      {cmyk}{0.34, 0.90, 0   , 0.02}
\definecolor{redviolet}     {cmyk}{0.07, 0.90, 0   , 0.34}
\definecolor{fuchsia}       {cmyk}{0.47, 0.91, 0   , 0.08}
\definecolor{lavender}      {cmyk}{0   , 0.48, 0   , 0   }
\definecolor{thistle}       {cmyk}{0.12, 0.59, 0   , 0   }
\definecolor{orchid}        {cmyk}{0.32, 0.64, 0   , 0   }
\definecolor{darkorchid}    {cmyk}{0.40, 0.80, 0.20, 0   }
\definecolor{purple}        {cmyk}{0.45, 0.86, 0   , 0   }
\definecolor{plum}          {cmyk}{0.50, 1   , 0   , 0   }
\definecolor{violet}        {cmyk}{0.79, 0.88, 0   , 0   }
\definecolor{royalpurple}   {cmyk}{0.75, 0.90, 0   , 0   }
\definecolor{blueviolet}    {cmyk}{0.86, 0.91, 0   , 0.04}
\definecolor{periwinkle}    {cmyk}{0.57, 0.55, 0   , 0   }
\definecolor{cadetblue}     {cmyk}{0.62, 0.57, 0.23, 0   }
\definecolor{cornflowerblue}{cmyk}{0.65, 0.13, 0   , 0   }
\definecolor{midnightblue}  {cmyk}{0.98, 0.13, 0   , 0.43}
\definecolor{navyblue}      {cmyk}{0.94, 0.54, 0   , 0   }
\definecolor{royalblue}     {cmyk}{1   , 0.50, 0   , 0   }
\definecolor{blue}          {cmyk}{1   , 1   , 0   , 0   }
\definecolor{cerulean}      {cmyk}{0.94, 0.11, 0   , 0   }
\definecolor{cyan}          {cmyk}{1   , 0   , 0   , 0   }
\definecolor{processblue}   {cmyk}{0.96, 0   , 0   , 0   }
\definecolor{skyblue}       {cmyk}{0.62, 0   , 0.12, 0   }
\definecolor{turquoise}     {cmyk}{0.85, 0   , 0.20, 0   }
\definecolor{tealblue}      {cmyk}{0.86, 0   , 0.34, 0.02}
\definecolor{aquamarine}    {cmyk}{0.82, 0   , 0.30, 0   }
\definecolor{bluegreen}     {cmyk}{0.85, 0   , 0.33, 0   }
\definecolor{emerald}       {cmyk}{1   , 0   , 0.50, 0   }
\definecolor{junglegreen}   {cmyk}{0.99, 0   , 0.52, 0   }
\definecolor{seagreen}      {cmyk}{0.69, 0   , 0.50, 0   }
\definecolor{green}         {cmyk}{1   , 0   , 1   , 0   }
\definecolor{forestgreen}   {cmyk}{0.91, 0   , 0.88, 0.12}
\definecolor{pinegreen}     {cmyk}{0.92, 0   , 0.59, 0.25}
\definecolor{limegreen}     {cmyk}{0.50, 0   , 1   , 0   }
\definecolor{yellowgreen}   {cmyk}{0.44, 0   , 0.74, 0   }
\definecolor{springgreen}   {cmyk}{0.26, 0   , 0.76, 0   }
\definecolor{olivegreen}    {cmyk}{0.64, 0   , 0.95, 0.40}
\definecolor{rawsienna}     {cmyk}{0   , 0.72, 1   , 0.45}
\definecolor{sepia}         {cmyk}{0   , 0.83, 1   , 0.70}
\definecolor{brown}         {cmyk}{0   , 0.81, 1   , 0.60}
\definecolor{tan}           {cmyk}{0.14, 0.42, 0.56, 0   }
\definecolor{gray}          {cmyk}{0   , 0   , 0   , 0.65}
\definecolor{black}         {cmyk}{0   , 0   , 0   , 1   }
\definecolor{white}         {cmyk}{0   , 0   , 0   , 0   } 

% *************** Enable hyperlinks in PDF documents ***************
\usepackage{hyperref}
  \hypersetup{
  	a4paper,
  	colorlinks=true,
  	pdfborder=0 0 0,
  	linkcolor=black,
  	citecolor=black,
  	bookmarks=true,
  	bookmarksdepth=subsubsection,
  	bookmarksopen=false,
  	bookmarksnumbered=true,
  	pdfstartview=FitH,
  	pdfview=FitH,
  	pdfstartpage=1,
  	breaklinks=true,
  	pdfpagemode=UseOutlines,
  	plainpages=false
	}

\usepackage{memhfixc}

% *************** Page layout ***************
\settypeblocksize{*}{35pc}{1.618}

\setlrmargins{1.4in}{*}{*}
\setulmargins{1.2in}{*}{*}


% \usepackage[lmargin=25mm,rmargin=25mm,tmargin=27mm,bmargin=30mm]{geometry}

\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}

\checkandfixthelayout


% set jarak antar row pada tabel
\def\baselinestretch{1.1}

\setlength{\parindent}{0in}
\setlength{\parskip}{0.1in}
\renewcommand{\bf}{\bfseries}
 
%==================================================
% \textheight=235mm
% \textwidth=145mm
% \topmargin=0mm
% \headheight=0mm
% \headsep=0mm
% 
% % These must be changed for double sided output !
% 
% \oddsidemargin=15mm
% \evensidemargin=15mm
% 
% % set line spacing to 1.5B
% \baselineskip = 17pt
 
% *************** Font style ***************
% \usepackage[T1]{fontenc}
% \usepackage{palatino}
% \renewcommand{\rmdefault}{pnc}
  
\usepackage{fourier}
 
% *************** Chapter and section style ***************
% \makechapterstyle{mychapterstyle}{%
%     \renewcommand{\chapnamefont}{\Huge\normalfont\bfseries}%
%     \renewcommand{\chapnumfont}{\Huge\normalfont\bfseries}%
%     \renewcommand{\chaptitlefont}{\normalfont\huge\bfseries}%
%     \renewcommand{\parttitlefont}{\normalfont\Huge\bfseries}%
%     \renewcommand{\printchaptertitle}[1]{%
%         \chaptitlefont\hrule height 0.5pt \vspace{0.75em}%
%         \raggedright {##1}\vspace{0.75em}\hrule height 0.5pt%
%         }%
%     \renewcommand{\printchapternum}{%
%     	\ifanappendix
% 			\raggedleft\space\thechapter%
% 		\else%
% 			\raggedleft\space\chapnumfont\thechapter%
% 		\fi%        
%      }%     
% }
% 
% \chapterstyle{mychapterstyle}
% 
% \setsecheadstyle{\Large\normalfont\bfseries}
% \setsubsecheadstyle{\large\normalfont\bfseries}
% \setsubsubsecheadstyle{\normalfont\bfseries}
% \setparaheadstyle{\normalfont}
% 
% \makeevenhead{headings}{\thepage}{}{\small\slshape\leftmark}
% \makeoddhead{headings}{\small\slshape\rightmark}{}{\thepage}

% *************** Table of contents style ***************
  \setsecnumdepth{subsection} 
  \maxsecnumdepth{subsection}
\settocdepth{section}
\maxtocdepth{section}

% *************** Figure ***************

% *************** addfigure ***************
\newcommand{\addSimpleFigures}[3]{
	 \begin{figure}[#1]
		\begin{center}
		\includegraphics[#2]{#3}
		\end{center}
		%\vspace{-15pt}	
	\end{figure}
} 

\newcommand{\addSimpleFigure}[2]{
	 \begin{figure}[h!]
		\begin{center}
		\includegraphics[#1]{#2}
		\end{center}
		%\vspace{-15pt}	
	\end{figure}
}

\newcommand{\addFigure}[4]{
	 \begin{figure}[ht]
		\begin{center}
		\includegraphics[#1]{#2}
		\end{center}
		\vspace{-12pt}
		\caption{#4}
		\label{#3}
		\vspace{-15pt}	
	\end{figure}
}



% *************** addtable ***************
\newcommand{\addTableFromFigure}[2]{
	 \begin{table}[h!]
		\begin{center}
		\includegraphics[#1]{#2}
		\end{center}
		\vspace{-15pt}	
	\end{table}
}

\newcommand{\addTableFromFigures}[4]{
	 \begin{table}[h!]
		\begin{center}
		\vspace{-10pt}
		\caption{#4}
		\vspace{-8pt}	
		\label{#3}
		\includegraphics[#1]{#2}
		\end{center}
		\vspace{-15pt}	
	\end{table}
}
 
%%%%%%%%%%%%%%% Glossaries package %%%%%%%%%%%%%%%%%
\usepackage[acronym,shortcuts]{glossaries}	
\renewcommand{\glossarysection}[4]{}

\makeglossaries

% how to use
%\printglossary[type=main,title={Glossary},toctitle={Glossary}]
%\thispagestyle{empty}\cleardoublepage
%\printglossary[type=\acronymtype,title={List of Abbreviations},toctitle={List of Abbreviations}]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % bibliograpystyle

% \usepackage{harvard}
% 	% \cite
% 	% \citeasnoun
% 	% \possessivecite
% 	
% % to handle harvard.sty crash with html.sty
%\renewcommand\harvardurl[1]{\small{\textbf{url:}\url{#1}}}
\renewcommand\harvardurl[1]{}
\renewcommand{\bibitempages}[1]{}
% 
\newcommand{\citenoun}[1]{\citeasnoun{#1}}
% \newcommand{\citeposs}[1]{\possessivecite{#1}}
\newcommand{\citeposs}[1]{\citeauthor{#1}'s \citeyearpar{#1}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% \input{chapstyle/vz43.tex}
\input{chapstyle/daleif1.tex}
% \chapterstyle{veelo}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{list_enum}{
\begin{enumerate}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{enumerate}}

\newenvironment{list_item}{
\begin{itemize}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{itemize}}

\usepackage{enumitem}
\setlist{nolistsep}
\setenumerate{listparindent=\parindent}
\setitemize{listparindent=\parindent}


\newcommand{\blankpage}{
	\newpage
	\thispagestyle{empty}
	\mbox{}
	\newpage
}